Consistently allow -1 to mean 'append' in tree models
authorMatthias Clasen <mclasen@redhat.com>
Thu, 12 Jul 2012 12:35:50 +0000 (08:35 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 12 Jul 2012 12:42:34 +0000 (08:42 -0400)
commit0b5f12975fefe625b643d6ac79ec58c88ea6d289
tree3559fea24f3334a5a70f326d1522aa4409e301b9
parent3d7a2d788312c10c1e953cf6af794a1cc3c71e18
Consistently allow -1 to mean 'append' in tree models

Both GtkListStore and GtkTreeStore had a few methods that allowed
-1 to mean 'append' when specified as a position, but others that
demanded positive position arguments. Make this consistent by
always allowing -1.
https://bugzilla.gnome.org/show_bug.cgi?id=667808
gtk/gtkliststore.c
gtk/gtktreestore.c